
#main

internal fib_closure() {
	a = 0
	b = 1
	return () => {
		c = b
		b = a + b
		a = c
		return a
	}
}

var f = fib_closure()
for i = 0 to 9 {
	echo "$i ==> ${f()}"
}

